﻿// Type: D2L.Extensibility.AuthSdk.HostSpec
// Assembly: D2L.Extensibility.AuthSdk, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null
// MVID: B2FBA42B-591C-474F-A782-6FF215FEDFB9
// Assembly location: C:\Users\leandro.perdizo\Desktop\D2L.Extensibility.AuthSdk.dll

using System;

namespace D2L.Extensibility.AuthSdk
{
  public sealed class HostSpec
  {
    private readonly string m_scheme;
    private readonly string m_host;
    private readonly int m_port;

    public string Scheme
    {
      get
      {
        return this.m_scheme;
      }
    }

    public string Host
    {
      get
      {
        return this.m_host;
      }
    }

    public int Port
    {
      get
      {
        return this.m_port;
      }
    }

    public HostSpec(string scheme, string host, int port)
    {
      this.m_scheme = scheme;
      this.m_host = host;
      this.m_port = port;
    }

    public UriBuilder ToUriBuilder()
    {
      return new UriBuilder(this.m_scheme, this.m_host, this.m_port);
    }
  }
}
